package com.cai.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cai.entity.DO.Permission;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Title: PermissionMapper
 * @Author RuoLi
 * @Package com.cai.dao.mapper
 * @Date 2024/1/12 11:12
 * @description: 权限Mapper
 */
@Repository
public interface PermissionMapper extends BaseMapper<Permission> {
    /**
     * 根据用户名获取权限集合
     * @param username 账号
     * @return String类型集合
     */
    List<String> listPermissionsByUserName(String username);
}
